export type ButtonSize = 'lg' | 'sm'

export type ButtonType = 'primary' | 'default' | 'danger' | 'link'

interface BaseButtonProps {
	className?: string
	disabled?: boolean
	size?: ButtonSize
	btnType?: ButtonType
	children?: React.ReactNode
	href?: string
}

type NativeButtonProps = BaseButtonProps &
	React.ButtonHTMLAttributes<HTMLElement> // 获取 button原生属性类型
type NativeAnchorProps = BaseButtonProps &
	React.AnchorHTMLAttributes<HTMLElement>

export type ButtonProps = Partial<NativeButtonProps & NativeAnchorProps>
